package com.youdoneed.news.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 统一全局配置。
 *
 * @author Ewing
 */
@Component
@ConfigurationProperties(prefix = "appConfig")
public class AppConfig {

    // 统一日期时间格式
    public static final String TIMEZONE = "GMT+8";
    public static final String DATE_FORMAT = "yyyy-MM-dd";
    public static final String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";

    // 授权验证信息存储KEY
    public static final String SESSION_KEY = "loginUser";
    public static final String TOKEN_KEY = "tokenUser";
    public static final String PERMISSION_KEY = "permissions";
    
    //推荐新闻url
    private String recommendedNewsUrl;
    //获取相关新闻url
    private String relationNewsUrl;
    //栏目通用推荐url
    private String hotNewsUrl;
	//热门视频推荐
	private String hotVideosUrl;
	//热闻推荐
    private String importantNewsUrl;
    //分享链接
    private String shareUrl;
    //详情链接
	private String newsDetailUrl;

	public String getShareUrl() {
		return shareUrl;
	}

	public void setShareUrl(String shareUrl) {
		this.shareUrl = shareUrl;
	}

	public String getNewsDetailUrl() {
		return newsDetailUrl;
	}

	public void setNewsDetailUrl(String newsDetailUrl) {
		this.newsDetailUrl = newsDetailUrl;
	}

	public String getHotVideosUrl() {
		return hotVideosUrl;
	}

	public void setHotVideosUrl(String hotVideosUrl) {
		this.hotVideosUrl = hotVideosUrl;
	}

	public String getImportantNewsUrl() {
		return importantNewsUrl;
	}

	public void setImportantNewsUrl(String importantNewsUrl) {
		this.importantNewsUrl = importantNewsUrl;
	}

	public String getRecommendedNewsUrl() {
		return recommendedNewsUrl;
	}

	public void setRecommendedNewsUrl(String recommendedNewsUrl) {
		this.recommendedNewsUrl = recommendedNewsUrl;
	}

	public String getRelationNewsUrl() {
		return relationNewsUrl;
	}

	public void setRelationNewsUrl(String relationNewsUrl) {
		this.relationNewsUrl = relationNewsUrl;
	}

	public String getHotNewsUrl() {
		return hotNewsUrl;
	}

	public void setHotNewsUrl(String hotNewsUrl) {
		this.hotNewsUrl = hotNewsUrl;
	}

}
